package Bill.app.serveur;


import java.net.Socket;
import java.util.*;

class ThreadDeconnexion extends Thread
{

    ThreadDeconnexion(Socket paquet, Hashtable LesConnecter, Vector listeLogin, String mess)
    {
        this.paquet = null;
        this.LesConnecter = null;
        this.listeLogin = null;
        this.paquet = paquet;
        this.mess = mess;
        this.LesConnecter = LesConnecter;
        this.listeLogin = listeLogin;
        start();
    }

    public void run()
    {
        String text = null;
        text = mess;
        StringTokenizer t = new StringTokenizer(text, ":");
        t.nextToken();
        String log = t.nextToken();
        LesConnecter.remove(log);
        listeLogin.remove(log);
        Thread.yield();
    }

    String mess;
    Socket paquet;
    Hashtable LesConnecter;
    Vector listeLogin;
}
